<template>
  <div class="list">
    <div v-for="(item,index) in col" :key="item.key" class="item">
      <div class="title">{{ item.title }}</div>
      <div class="val" v-if="datas">{{ datas[item.key] || 0 }}</div>
    </div>
  </div>
</template>

<script setup>
defineProps({
  col: {
    type: Array,
    default: []
  },
  datas: {
    type: Object,
    default: () => {}
  }
});
</script>

<style lang="less" scoped>
@import "./index.less";
</style>
